<?php
namespace App\Http\Requests\System\Message;

use App\Http\Requests\Request;

class ListsRequest extends Request {

    public function rules():array
    {
        return [
            'uid' => 'required|numeric',
            'page' => 'numeric',
            'limit' => 'numeric',
        ];
    }

    public function messages():array
    {
        return [
            'uid.required' => '参数错误,校验失败',
            'uid.numeric' => '参数格式错误',
            'page.numeric' => '页数格式错误',
            'limit.numeric' => '条目数格式错误'
        ]; // TODO: Change the autogenerated stub
    }

}